﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Licenta1
{
    [Serializable]
    class ParameterList:Expression
    {
        public Expression currentP, nextP;

        public ParameterList(Context context, Expression param1, Expression param2)
            : base(context)
        {
            currentP = param1;
            nextP = param2;
            //Console.WriteLine("Added in p_list:" + currentP.Value.ToString());
        }

        public override object Value
        {
            get
            {
                return this;
            }
        }

        public object FirstValue
        {
            get { return currentP.Value; }
        }

        public object SecondValue
        {
            get { return nextP.Value; }
        }
    }
}
